﻿// Infrastructure/Helpers/PaginationHelper.cs

using System.Collections.Generic;
using System.Linq;

namespace DatabaseManager.Infrastructure.Helpers
{
    public static class PaginationHelper
    {
        public static List<T> Paginate<T>(List<T> source, int page, int pageSize)
        {
            return source.Skip((page - 1) * pageSize).Take(pageSize).ToList();
        }
    }
}